package chixing.day19.pcp_demo;

public class Producer extends Thread{
    private PublicResource publicResource;

    public Producer(PublicResource publicResource) {
        this.publicResource = publicResource;
    }

    @Override
    public void run() {
        while (true){
            publicResource.produce();
        }
    }
}
